﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TagBasedResourceManagePlatform
{
    public sealed class SearchResult
    {
        #region Fields

        private Database.Resource[] _localResources;

        #endregion

        #region Properties

        public IEnumerable<Database.Resource> LocalResources { get { return _localResources; } }

        #endregion

        #region Constructor&Destructor

        private SearchResult()
        {

        }

        #endregion



        internal static SearchResult CreateResult(string[] keywords)
        {
            SearchResult result = new SearchResult();


            Framework.GetInstance().Database.GetMatchResult(keywords, out result._localResources);


            return result;
        }
    }
}
